package com.itheima.ydd.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * 广告位
 */
@Data
@Slf4j
@Accessors(chain = true)
@TableName("ydd_advpos")
public class Advpos implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 广告位名称
     */
    private String advposname;

    /**
     * 广告位描述
     */
    private String advposdesc;


    /**
     * 广告位尺寸
     */
    private String advpossize;

    /**
     * 是否为默认数据，null表示不是，1表示是
     */
    @TableField("default_data")
    @TableLogic(value = "1", delval = "0")
    private String defaultData;

}
